package ysq.xyg.service;

import com.github.pagehelper.PageInfo;
import ysq.xyg.model.Address;

import java.util.List;

/**
 * @author yu sheng qiang
 * @create 2017-04-19 14:10
 **/
public interface AddressService extends BaseService<Address> {
    //分页查询
    public PageInfo<Address> pageInfo(Address address, int pageSize, int pageNum) ;
    //条件查询
    public List<Address> list(Address address);

    /**
     * 将除此id之外的地址设置为非默认
     */
    int updateDefaultType(String id);
}
